<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
        <!DOCTYPE html>
        <html lang="zh_CN">

        <head>
            <meta charset="UTF-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <title>后台</title>
            <link rel="shortcut icon" href="${pageContext.request.contextPath}/images/bar.png" type="image/x-icon">
            <link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css" type="text/css">
            <script src="${pageContext.request.contextPath}/js/echarts.min.js"></script>
        </head>

        <body>
            <div class="navbar">
                <!-- 导航栏 -->
                <div class="header">
                    <!-- 导航栏左侧 -->
                    <div class="header_left">
                        <a href="main.action">
                            <img src="${pageContext.request.contextPath}/images/log.png" alt="后台">
                            <span>后台管理</span>
                        </a>
                    </div>
                    <!-- 导航栏右侧 -->
                    <div class="header_right">
                        <p>当前用户: ${session_user.doc_name}</p>
                        <a href="Logout" onclick="return confirm('确定要退出吗？')">
                            <span>退出登录</span>
                            <img src="${pageContext.request.contextPath}/images/log-out.png" alt="退出">
                        </a>
                    </div>
                </div>

                <!-- 左侧菜单栏 -->
                <div class="left_bar">
                    <ul>
                        <c:if test="${session_user.doc_judge==0}">
                            <li>
                                <a href="main.action">
                                    <img src="${pageContext.request.contextPath}/images/main.png" alt="首页">
                                    <span>首页</span>
                                </a>
                            </li>
                            <li>
                                <a href="addMR.action">
                                    <img src="${pageContext.request.contextPath}/images/addMR.png" alt="添加病历">
                                    <span>添加处方</span>
                                </a>
                            </li>
                            <li>
                                <a href="queryMR.action">
                                    <img src="${pageContext.request.contextPath}/images/queryMR.png" alt="查询病历">
                                    <span>查询处方</span>
                                </a>
                            </li>
                            <li>
                                <a href="addUser.action">
                                    <img src="${pageContext.request.contextPath}/images/addUser.png" alt="添加用户">
                                    <span>添加用户</span>
                                </a>
                            </li>
                            <li>
                                <a href="userJdc.action">
                                    <img src="${pageContext.request.contextPath}/images/userJdc.png" alt="权限管理">
                                    <span>权限管理</span>
                                </a>
                            </li>
                            <li>
                                <a href="changePwd.action">
                                    <img src="${pageContext.request.contextPath}/images/changePwd.png" alt="修改密码">
                                    <span>修改密码</span>
                                </a>
                            </li>
                            <li>
                                <a href="aboutMe.action">
                                    <img src="${pageContext.request.contextPath}/images/about.png" alt="关于">
                                    <span>关于</span>
                                </a>
                            </li>
                        </c:if>
                        <c:if test="${session_user.doc_judge==1}">
                            <li>
                                <a href="main.action">
                                    <img src="${pageContext.request.contextPath}/images/main.png" alt="首页">
                                    <span>首页</span>
                                </a>
                            </li>
                            <li>
                                <a href="addMR.action">
                                    <img src="${pageContext.request.contextPath}/images/addMR.png" alt="添加病历">
                                    <span>添加病历</span>
                                </a>
                            </li>
                            <li>
                                <a href="queryMR.action">
                                    <img src="${pageContext.request.contextPath}/images/queryMR.png" alt="查询病历">
                                    <span>查询病历</span>
                                </a>
                            </li>
                            <li>
                                <a href="changePwd.action">
                                    <img src="${pageContext.request.contextPath}/images/changePwd.png" alt="修改密码">
                                    <span>修改密码</span>
                                </a>
                            </li>
                            <li>
                                <a href="aboutMe.action">
                                    <img src="${pageContext.request.contextPath}/images/about.png" alt="关于">
                                    <span>关于</span>
                                </a>
                            </li>
                        </c:if>
                    </ul>
                </div>

                <!-- 右侧主体内容 -->
                <div class="right_bar">
                    <jsp:include page="${mainRight==null? 'blank.jsp':mainRight}"></jsp:include>
                </div>

                <!-- 页面底部部分 -->
                <div class="footer">
                    <a href="http://121.4.61.116/company" target="_blank"><span>©:关于我们</span></a>
                </div>


            </div>
        </body>

        </html>